package OOP.Poly_Exercise.PolyExercise_Parameter;

public class Manager extends Employee{
    private double bonus;
    //构造器
    public Manager(String name, double salary, double bonus) {
        super(name, salary);
        this.bonus = bonus;
    }
    //set方法
    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
    //get方法
    public double getBonus() {
        return bonus;
    }

    //manage方法
    public void manage(){
        System.out.println("manageing");
    }
    @Override
    //getAnnual方法
    public String getAnnual() {
        return "Manage : "+ getSalary()+bonus;
    }
}
